package com.nimitz.module.drip.domain;

import com.nimitz.common.annotation.Excel;
import com.nimitz.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 日营业额 dri_business
 */
@ApiModel(value = "DriBusiness对象", description = "日营业额表")
public class DriBusiness extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 日营业额id
     */
    @ApiModelProperty(value = "日营业额id")
    private Integer businessId;

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    /**
     * 订单编码
     */
    @Excel(name = "订单编码")
    @ApiModelProperty(value = "订单编码")
    private String orderCode;

    /**
     * 订单来源
     */
    @ApiModelProperty(value = "订单来源")
    private String orderSource;

    /**
     * 订单类型
     */
    @ApiModelProperty(value = "订单类型")
    private String orderType;

    /**
     * 订单日期
     */
    @ApiModelProperty(value = "订单日期")
    private String orderDate;

    /**
     * 订单金额
     */
    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderAmount;

    /**
     * 门店id
     */
    @ApiModelProperty(value = "门店id")
    private Integer storeId;

    /**
     * 门店编码
     */
    @ApiModelProperty(value = "门店编码")
    private String storeCode;

    /**
     * 现金流水：0=未同步,1=已同步
     */
    @ApiModelProperty(value = "现金流水：0=未同步,1=已同步")
    private String cashStatus;

    /**
     * 权责收入：0=未同步,1=已同步
     */
    @ApiModelProperty(value = "权责收入：0=未同步,1=已同步")
    private String dutyStatus;

    /**
     * 日维度：0=未同步,1=已同步
     */
    @ApiModelProperty(value = "日维度：0=未同步,1=已同步")
    private String dailyStatus;

    /**
     * 同步类型：0=自动,1=手动
     */
    @ApiModelProperty(value = "同步类型：0=自动,1=手动")
    private String syncType;

    /**
     * 删除标志：0=存在,1=删除
     */
    private String delFlag;

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getOrderSource() {
        return orderSource;
    }

    public void setOrderSource(String orderSource) {
        this.orderSource = orderSource;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    public String getCashStatus() {
        return cashStatus;
    }

    public void setCashStatus(String cashStatus) {
        this.cashStatus = cashStatus;
    }

    public String getDutyStatus() {
        return dutyStatus;
    }

    public void setDutyStatus(String dutyStatus) {
        this.dutyStatus = dutyStatus;
    }

    public String getDailyStatus() {
        return dailyStatus;
    }

    public void setDailyStatus(String dailyStatus) {
        this.dailyStatus = dailyStatus;
    }

    public String getSyncType() {
        return syncType;
    }

    public void setSyncType(String syncType) {
        this.syncType = syncType;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("businessId", getBusinessId())
                .append("orderId", getOrderId())
                .append("orderCode", getOrderCode())
                .append("orderSource", getOrderSource())
                .append("orderType", getOrderType())
                .append("orderDate", getOrderDate())
                .append("orderAmount", getOrderAmount())
                .append("storeId", getStoreId())
                .append("storeCode", getStoreCode())
                .append("cashStatus", getCashStatus())
                .append("dutyStatus", getDutyStatus())
                .append("dailyStatus", getDailyStatus())
                .append("syncType", getSyncType())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
